package com.woniuxy.lrz.carlproject.controller.form.formcar;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("新增/修改车型具体信息，接收前端传递参数")
public class CarDetailsAddOrUpdateForm {

    @ApiModelProperty("车辆详情Id")
    private Integer carDetailId;

    @ApiModelProperty("排量")
    @NotBlank(message = "排量不能为空")
    private String displacement;

    @ApiModelProperty("年份")
    @NotBlank(message = "年份不能为空")
    private String carYear;

    @ApiModelProperty("具体型号版本")
    @NotBlank(message = "具体型号版本不能为空")
    private String varVersion;

    @ApiModelProperty("关联车型id")
    @NotNull(message = "车型Id不能为空")
    private Integer carTypeId;


}
